/**
 * Created by walkman on 2017/6/23.
 */
(function () {
  angular.module('WfbPlatformApp').controller('DashboardController',
    ['$rootScope', '$scope', '$http', '$compile', 'http', '$q', 'dashboardService',
      function ($rootScope, $scope, $http, $compile, http, $q, dashboardService) {

        $scope.userView = {};

        $scope.$on('$viewContentLoaded', function () {
          // initialize core components
          // $scope.getUserView();
        });

        $scope.$on('$includeContentLoaded', function () {

        });

        $scope.getUserView = function () {

          var promise = dashboardService.getUserAssetInfo({});
          promise.then(function success(result) {
            //成功回调
            $scope.userView = angular.copy(result.data);
          }, function error(error) {//错误回调
            // console.log(JSON.stringify(error));
          });
        };

        $scope.getUserView();

      }]);
})();





